﻿using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Identity;

namespace Himp.Platform
{
    public class AccountLoginDto
    {
        public string Msg { get; set; }

        public AccountLoginUserDto User { get; set; }

        //public PsnInfoDto Staff { get; set; }

        public List<OrganDto> Organ { get; set; }

        public AccountLoginDto()
        {
            Msg = "ok";
        }
    }

    public class AccountLoginUserDto
    {
        public string Token { get; set; }

        public string Name { get; set; }

        public string Email { get; set; }

        public Guid Id { get; set; }

        public int Expired { get; set; }

        public AccountLoginUserDto(string token, int expired, IdentityUserDto user)
        {
            Token = token;
            Expired = expired;
            Name = user.UserName;
            Email = user.Email;
            Id = user.Id;
        }
    }
}
